<template>
    <div class="bg" @click="openWx()">
    </div>
</template>
<script>
export default {
  methods: {
    openWx(){
        console.log("aaa");
        var u = navigator.userAgent, app = navigator.appVersion;
        var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1; //g
        var isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
        console.log("bbb");
        if (isAndroid) {
            console.log("ccc");
            window.jsBoxFangBianHua.notify("OpenWeChat",
            '{"content":"fangbianhh","message":"方便花公众号 fangbianhh 已复制成功，打开微信关注方便花花服务号，免息福利享不停"}');
        }else if (isIOS) {
            window.location.href = "wx://openwechart?content=fangbianhh&message=方便花公众号fangbianhh已复制成功，打开微信关注方便花花服务号，免息福利享不停";
    　　　　//这个是ios操作系统
        }else{
           
        }
    }
  },
}
</script>
<style>
  .bg {
    background-image: url(https://www.tbarichman.cn/h5/static/fbhh.png);
    background-repeat: no-repeat;
    background-size: 100%;
    -moz-background-size: 100% 100%;
    width: 100%;
    height: 100%
  }
</style>